import { createReducer, nanoid } from '@reduxjs/toolkit';
import {updateLogo} from "./action";
import ImageCommon from "../../assets/image/common/ImageCommon";
export type logo = {
    logo:string
}
const initialState:logo = {
    logo:ImageCommon.logo
};

export default createReducer(initialState, (builder) =>
  builder
    .addCase(updateLogo, (state, action) => {
      const { logo } = action.payload;
        state.logo = logo;
    })
);
